//
//  IBGiftWithFireWorkks.m
//  烟花特效
//
//  Created by apple on 15/7/10.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "IBGiftWithFireWorksView.h"
#import "IBFireWorksView.h"

@interface IBGiftWithFireWorksView ()

@property (nonatomic,strong) UIImageView * giftView;

@end

@implementation IBGiftWithFireWorksView

-(instancetype)initWithGift:(UIImageView *)giftImageView Frame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor blackColor];
        
       
        //添加背景图
        IBFireWorksView * backGroundView = [[IBFireWorksView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        [self addSubview:backGroundView];
        
        //添加要显示视图
        self.giftView = giftImageView;
        [self addSubview:_giftView];
        
        
    }
    return self;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
